package com.codeshellme.bookmanager.service;

import com.codeshellme.bookmanager.dto.UmsUser;
import com.github.pagehelper.PageInfo;

import java.util.List;
import java.util.Map;

public interface UmsUserService {

    PageInfo<Map<String, Object>> queryAllUsers(String nickname, Integer role_id, Byte status,
                                                String date_start, String date_end,
                                                Integer pageNum, Integer pageSize);

    int updateUser(UmsUser user);

    int addUser(UmsUser user);

    int deleteUserById(Integer userId);

    // 验证用户名是否可用
    Boolean verifyUserName(String username);

}
